package main

import (
	"github.com/gin-gonic/gin"
	"server/initialize"
	"server/router"
)

func main() {
	//初始化
	initialize.Init()

	r := gin.Default()       //注册gin
	r.Use(initialize.Cors()) // 跨域
	router.Router(r)         //注册路由

	//指定价格
	err := r.Run(":8999")
	if err != nil {
		panic("启动失败")
		return
	}
}
